package com.yong.android.framework.view.recyclerview;

import android.support.v7.widget.RecyclerView;

/**
 * Description:
 * Author:yong
 * Date:2017-12-21
 */

public class CellDecoration extends RecyclerView.ItemDecoration {
    CellListAdapter mAdapter;

    public CellDecoration() {
    }

//
//    public final int findCellPosition(int position) {
//        return mAdapter.isStatusEnable() ? mAdapter.findCellPositionByViewType(mAdapter.getItemViewType(position)) : -1;
//    }
//
//    public final int findCellItemPosition(int position) {
//        int cellPosition = findCellPosition(position);
//        if (cellPosition == -1) {
//            return -1;
//        }
//        return mAdapter.findCellItemPosition(cellPosition, position);
//    }
//
//    public final int getCellHasCount(int position) {
//        int cellPosition = findCellPosition(position);
//        if (cellPosition == -1) {
//            return 0;
//        }
//
//        return mAdapter.getCellAt(cellPosition).getCount();
//    }
//
//    public static int generateViewType(int cellPosition, int viewType) {
//        if (viewType < 0) {
//            return -((cellPosition << 16) + viewType);
//        }
//        return (cellPosition << 16) + viewType;
//    }

}
